//
//  TianXieDingDan_ViewController.m
//  OpenYooxi_IOS
//
//  Created by YeahYes on 15/3/19.
//  Copyright (c) 2015年 com.ivyvi.ee. All rights reserved.
//

#import "TianXieDingDan_ViewController.h"

@interface TianXieDingDan_ViewController ()

@end

@implementation TianXieDingDan_ViewController


- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:NO];
    
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.hidesBottomBarWhenPushed = YES;
        
    }
    return self;
}



- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"填写订单";
    
    
    //2.第二种创建方式
    UIButton *leftButton = [UIButton buttonWithType:UIButtonTypeCustom];
    leftButton.frame = CGRectMake(0, 0, 10, 20);
    [leftButton setImage:[UIImage imageNamed:@"2_03"]
                forState:UIControlStateNormal];
    [leftButton addTarget:self action:@selector(leftAction:)
         forControlEvents:UIControlEventTouchUpInside];
    
    UIBarButtonItem *leftItem = [[UIBarButtonItem alloc] initWithCustomView:leftButton];
    self.navigationItem.leftBarButtonItem = leftItem;

    
    _peisongadress.textColor = UIColorFromRGB(0x797979);
    _zhifupeisong.textColor = UIColorFromRGB(0x797979);
    _fapiaoxinxi.textColor = UIColorFromRGB(0x797979);
    _youhuiquan.textColor = UIColorFromRGB(0x797979);
    
//    //3.图片设置圆角
//    _changpinImg.layer.borderColor = UIColorFromRGB(0xC2C2C2).CGColor;
//    _changpinImg.layer.borderWidth = 1;

    
    
    //2.背景视图
    _beijingView.backgroundColor = UIColorFromRGB(0xF7F7F7);
    
    _shituView1.layer.borderColor = UIColorFromRGB(0xE5E5E5).CGColor;
    _shituView1.layer.borderWidth = 1;
    
    
    _shituView2.layer.borderColor = UIColorFromRGB(0xE5E5E5).CGColor;
    _shituView2.layer.borderWidth = 1;
    
    _shituView3.layer.borderColor = UIColorFromRGB(0xE5E5E5).CGColor;
    _shituView3.layer.borderWidth = 1;
    
    
    _shituView4.layer.borderColor = UIColorFromRGB(0xE5E5E5).CGColor;
    _shituView4.layer.borderWidth = 1;
    
    
    _shituView5.layer.borderColor = UIColorFromRGB(0xE5E5E5).CGColor;
    _shituView5.layer.borderWidth = 1;
}


- (void)leftAction:(UIButton *)button {
    [self.navigationController popViewControllerAnimated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
